package com.tjut.oop.hol4;

public class TestCompany {

	public static void main(String[] args) {
		ColaEmployee[] colaEmployee = new ColaEmployee[3];
		colaEmployee[0] = new SalariedEmployee("普通员工", 5, 7000);
		colaEmployee[1] = new HourlyEmployee("小时工", 6, 170, 35);
		colaEmployee[2] = new SalesEmployee("销售员工", 8, 40000, 0.2);
		int month = 6;
	Company com=new Company(colaEmployee, month);
	// 循环打印员工本月份工资
	com.printfSalary();
	}

}
